package com.sh.data.engine.application.model.dto.dataquality;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * @author tinglan.ys
 * @description:
 * @date 2022/3/24 下午1:56
 */
@Data
@Schema
public class DataQualityJobResponse {


    @Schema(description = "任务id")
    private Long id;

    @Schema(description = "表id")
    private Long tblId;

    @Schema(description = "空间id")
    private Long projectId;

    @Schema(description = "表名")
    private String tblName;

    @Schema(description = "表描述")
    private String tblComment;

    @Schema(description = "任务频率 0-月 1-周 2-天 3-小时 4-分钟 5-试跑")
    private Integer taskCycle;

    @Schema(description = "任务修改时间")
    private Date taskUpdateTime;

    @Schema(description = "任务状态，0-运行中 1-正常 2-异常 3-sql语句出错")
    private Integer status;

    @Schema(description = "规则数")
    private Integer ruleNum;

    @Schema(description = "问题数")
    private Integer errorNum;

    @Schema(description = "是否是最新 1-是")
    private Integer isLast;

    @Schema(description = "是否有分区 0-没有 1-有")
    private Integer hasPartition;

    /*@Schema(description = "访问权限")
    private String accessMode;*/

}
